class foo { public bar:{id:number;}[] = [<foo>({})]; }